param(
  [string]$BaseUrl = 'http://localhost:8081',
  [string]$DemandId
)
if (-not $DemandId) { Write-Error 'DemandId is required'; exit 1 }
$headers = @{ 'Content-Type' = 'application/json' }
$payload = @{ demandId = $DemandId } | ConvertTo-Json
$url = "$BaseUrl/api/recommendations/match"
$resp = Invoke-RestMethod -Method Post -Uri $url -Headers $headers -Body $payload
$resp | ConvertTo-Json -Depth 10